package com.db.addrbook;

import java.util.*;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

public class ZipcodeDAO {
	private SqlMapClientTemplate template;
	
	public void setTemplate(SqlMapClientTemplate template) {
		this.template = template;
	}
	
	public List<ZipcodeVO> zipcodeFind(String dong){
		List<ZipcodeVO> list = new ArrayList<ZipcodeVO>();
		try {
			list = template.queryForList("zcFind", dong);
		} catch (Exception e) {
			System.out.println("ZipcodeDAO.zipcodeFind():"+e.toString());
		}
		return list;
	}
}
